package
{
	import flash.events.MouseEvent;
	
	import spark.components.SkinnableContainer;
	import spark.components.supportClasses.GroupBase;
	
	public class FishEyeContainer extends SkinnableContainer
	{
		public function FishEyeContainer()
		{
			super();
			
			layout = new FishEyeLayout();

			addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
			addEventListener(MouseEvent.ROLL_OUT, onRollOut);
		}
		
		public function set maxRows(value:Number):void
		{
			(layout as FishEyeLayout).maxRows = value;
		}
		
		public function set maxColumns(value:Number):void
		{
			(layout as FishEyeLayout).maxColumns = value;
		}
		
		protected function onMouseMove(event:MouseEvent): void
		{
			(layout as FishEyeLayout).onMouseMove(event);
		}
		
		
		protected function onRollOut(event:MouseEvent): void
		{
			(layout as FishEyeLayout).onRollOut(event);
		}
	}
}